package org.jeecg.modules.demo.com.kunpeng.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.CommodityBrand;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.com.kunpeng.entity.dto.CommodityBrandQueryListDTO;
import org.jeecg.modules.demo.com.kunpeng.vo.CommodityBrandQueryListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 商品品牌
 * @Author: jeecg-boot
 * @Date:   2023-01-12
 * @Version: V1.0
 */
@Transactional
public interface ICommodityBrandService extends IService<CommodityBrand> {

    /**
     * 新增
     */
    void insert(CommodityBrand commodityBrand);

    /**
     * 按品牌名称模糊查询
     */
    Page<CommodityBrandQueryListVO> queryListByBrand(Page<CommodityBrandQueryListVO> page, CommodityBrandQueryListDTO commodityBrandQueryListDTO);

    /**
     * 按品牌名称模糊查询显示全部
     */
    Page<CommodityBrandQueryListVO> queryListByBrandAll(Page<CommodityBrandQueryListVO>page,CommodityBrandQueryListDTO commodityBrandQueryListDTO);

    /**
     * 启用商品品牌
     */
    void enableBrand(String id);

    /**
     * 禁用商品品牌
     */
    void unEnableBrand(String id);
}
